package com.cqemme.activitiservice.feign;

import com.cqemme.activitiservice.feign.fallback.UserServiceFallback;
import com.cqemme.comm.po.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;
import java.util.Map;

/**
 * 用户服务调用
 *
 * @author daibin
 */
@FeignClient(value = "user-service", fallback = UserServiceFallback.class)
public interface UserServiceFeign {

    /**
     * 根据组织编码和角色编码来获得角色人员
     *
     * @param map
     * @return
     */
    @RequestMapping(value = "/user/getRolesUser", method = RequestMethod.POST)
    Result getRolesUser(@RequestBody Map<String,Object> map);
}
